package com.leo.ktvplayer.util;

import java.text.SimpleDateFormat;

/**
 *
 */
public class TimeFormatUtil {
    public static SimpleDateFormat format = new SimpleDateFormat();

    public static String formatMinAndSecend(long time){
        format.applyPattern("mm:ss");
       return defaultFoamt(time);
    }

    public static String formatYearMonthDay(long time){
        format.applyPattern("yyyy:MM:dd");
        return defaultFoamt(time);
    }

    private static String defaultFoamt(long time){
        return format.format(time);
    }
}
